package com.zw.cloud.mybatis.plus.controller.stenter;

import com.zw.cloud.global.response.wrapper.entity.WebResult;
import com.zw.cloud.mybatis.plus.entity.stenter.ProductRetentionDTO;
import com.zw.cloud.mybatis.plus.task.stenter.ProductRetentionTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 【MES定型机】生产记录
 */
@RestController
@RequestMapping("/task/product-retention-task")
public class ProductRetentionTaskController {
    @Autowired
    private ProductRetentionTask productRetentionTask;


    /**
     * 排产未生产滞留超时提醒
     */
    @GetMapping
    public WebResult<List<ProductRetentionDTO>> updateProductRetention() {
        return WebResult.success(productRetentionTask.updateProductRetention());
    }

}
